package com.whutosa.template.server.service;

import com.whutosa.template.server.model.Person;
import org.springframework.data.domain.Page;

/**
 * Created by 19110 on 2016/9/12.
 */
public interface PersonService {

    /**
     * Service测试
     *
     * @param page
     * @param size
     * @return
     */
    Page<Person> getAllPeople(int page, int size);

    Page<Person> findByNameLike(String name, int page, int size);

    Page<Person> query(Person condtion, int page, int size);
}
